package cn.dlc.com.feign;

import cn.dlc.com.account.entity.Account;
import cn.dlc.com.feign.impl.RemoteAccountServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 邓立川
 * @date 2021/1/12 16:58
 * @desc 远程调用接口
 */
@FeignClient(name = "seata-bank2", fallback = RemoteAccountServiceImpl.class)
public interface RemoteAccountService {

    @PostMapping("bank2/to")
    String saveAccount(@RequestBody Account account);

}
